package com.cloud.security.jwt;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

@Configuration
@PropertySource(value = {"classpath:application-jwt.properties"}, encoding = "UTF-8")
@ConfigurationProperties(prefix = "jwt")
public class JwtProperties {

    private String key;

    private Long tokenExpiredTime;

    public Long getTokenExpiredTime() {
        return tokenExpiredTime;
    }

    public void setTokenExpiredTime(Long tokenExpiredTime) {
        this.tokenExpiredTime = tokenExpiredTime;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }
}
